__author__ = 'song'


def f1():
    str = raw_input("Input: ")
    str1 = str.split('p')
    print(str1)


def f2():
    str = raw_input("Input: ")
    str1 = str.find("song")
    print(str1)


f2()
